package com.chs.recoginition.service;

import com.alibaba.fastjson.JSONObject;
import com.chs.recoginition.vo.respVo.ImageRecognitionRespVo;
import netscape.javascript.JSObject;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * @Author CHS
 * @Date 2023/2/8 23:36
 * @Version 1.0
 **/
public interface ImageRecognitionService {

    /**
     * 获取百度云令牌
     * @return
     */
    String getToken();

    /**
     * 通用物品和场景识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getAdvancedGeneral(String image) throws IOException;

    /**
     * 动物识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getAnimal(String image) throws IOException;

    /**
     * 植物识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getPlant(String image) throws IOException;

    /**
     * logo识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getLogo(String image) throws IOException;

    /**
     * 果蔬识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getIngredient(String image) throws IOException;

    /**
     * 菜品识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getDish(String image) throws IOException;

    /**
     * 红酒识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getRedWine(String image) throws IOException;

    /**
     * 货币识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getCurrency(String image) throws IOException;

    /**
     * 地标识别
     * @param image
     * @return
     */
    ImageRecognitionRespVo getLandmark(String image) throws IOException;


    /**
     * 获取百度百科信息
     * @param msg
     * @return
     */
    JSONObject getMsg(String msg);

    Map<String,String> getImageBase64(String image64) throws IOException;
}
